blob: f62f486b6bbecc8b4b065d2f9b5d0235d03115ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
import { Suspense } from "react";
import { Skeleton } from "@/components/ui/skeleton";
import { Card, CardContent, CardHeader } from "@/components/ui/card";
import DolceUploadPageV3 from "./dolce-upload-page-v3";
import { Shell } from "@/components/shell";
export const metadata = {
title: "조선 벤더문서 업로드(DOLCE) V3",
description: "조선 설계문서 업로드 및 관리 - 오프라인 동기화 지원",
};
function DolceUploadSkeleton() {
return (
<div className="space-y-4">
<Card><CardHeader><Skeleton className="h-8 w-48" /></CardHeader><CardContent><Skeleton className="h-32 w-full" /></CardContent></Card>
<Card><CardHeader><Skeleton className="h-8 w-48" /></CardHeader><CardContent><Skeleton className="h-96 w-full" /></CardContent></Card>
</div>
);
}
export default async function DolceUploadPageWrapper({
params,
searchParams,
}: {
params: Promise<{ lng: string }>;
searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
}) {
const { lng } = await params;
const resolvedParams = await searchParams;
return (
<Shell variant="fullscreen">
<div className="flex items-center justify-between flex-shrink-0">
<div>
<h2 className="text-2xl font-bold tracking-tight">
{lng === "ko" ? "DOLCE 도면 업로드 V3 (동기화)" : "DOLCE Drawing Upload V3 (Sync)"}
</h2>
<p className="text-muted-foreground">
{lng === "ko" ? "임시 저장 및 서버 동기화 기능을 지원합니다." : "Supports temporary save and server synchronization."}
</p>
</div>
</div>
<Suspense fallback={<DolceUploadSkeleton />}>
<DolceUploadPageV3 searchParams={resolvedParams} />
</Suspense>
</Shell>
);
}
|